#!/usr/bin/env coffee

import thisdir from '@rmw/thisdir'
import Qiniu from '@rmw/qiniu'
import {join} from 'path'

PWD = thisdir import.meta

QINIU = Qiniu()

await QINIU.upload_dir(
  'bill-xvc'
  join(PWD,'dist')
  (fp)=>
    if fp.indexOf('/.git/') > 0
      return false
    console.log fp
    return
  'bill.xvc.com'
)
process.exit()
